package com.eastfair.venuebooking.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体类
 * 环节
 * </p>
 *
 * @author linan
 * @since 2022-06-08
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ExhibitionSegmentUpdateDTO", description = "环节")
public class ExhibitionSegmentUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 校验标识
     */
    public interface Check {};

    @ApiModelProperty(value = "主键")
    @NotNull(message = "请填写主键", groups = Check.class)
    private Long id;

    /**
     * 展会id
     */
    @ApiModelProperty(value = "展会id")
    private Long exhibitionId;
    /**
     * 环节名称
     */
    @ApiModelProperty(value = "环节名称")
    @Size(max = 255, message = "环节名称长度不能超过255")
    private String segmentName;
    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间")
    private LocalDateTime startTime;
    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;
    /**
     * 可删除的   1  可删除   0 不可删除
     */
    @ApiModelProperty(value = "可删除的   1  可删除   0 不可删除")
    private Boolean deleteable;
}
